From: Wei Liu Date: Tue, 3 Mar 2015 12:44:38 +0000 (+0000) Subject: xsm/policy: remove gawk-ism line in Makefile X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3661 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=00d28e5c8089963525884ae3a682a93e7e559820;p=xen.git xsm/policy: remove gawk-ism line in Makefile Translate gawk regex to mawk regex to allow using mawk. The new regex works on both gawk and mawk. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Daniel De Graaf Acked-by: Ian Campbell Acked-by: Daniel De Graaf --- diff --git a/tools/flask/policy/Makefile b/tools/flask/policy/Makefile index 54a845beca..58d9ce1e09 100644 --- a/tools/flask/policy/Makefile +++ b/tools/flask/policy/Makefile @@ -86,7 +86,7 @@ DETECTED_MODS := $(sort $(foreach dir,$(ALL_LAYERS),$(wildcard $(dir)/*.te))) MODENABLED := on # extract settings from modules.conf -ENABLED_MODS := $(foreach mod,$(shell awk '/^[[:blank:]]*[[:alpha:]]/{ if ($$3 == "$(MODENABLED)") print $$1 }' $(MOD_CONF) 2> /dev/null),$(subst ./,,$(shell find -iname $(mod).te))) +ENABLED_MODS := $(foreach mod,$(shell awk '/^[ \t]*[a-z]/{ if ($$3 == "$(MODENABLED)") print $$1 }' $(MOD_CONF) 2> /dev/null),$(subst ./,,$(shell find -iname $(mod).te))) ALL_MODULES := $(filter $(ENABLED_MODS),$(DETECTED_MODS))